﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RaytracerLib;
using RaytracerLib.MathLib;
using System.ComponentModel;
using RaytracerLib.RenderableObjects;
using RaytracerLib.Rays;

namespace Raytracer.PropertyGridDecorators
{
    public class RayProperties
    {
        private Ray m_ray;

        public RayProperties(Ray a_ray)
        {
            m_ray = a_ray;
        }

        [TypeConverter(typeof(Vector3Converter))]
        public Vector3ReadonlyProperties Dir
        {
            get
            {
                return new Vector3ReadonlyProperties(m_ray.Dir);
            }
        }

        [TypeConverter(typeof(Vector3Converter))]
        public Vector3ReadonlyProperties Start
        {
            get
            {
                return new Vector3ReadonlyProperties(m_ray.Start);
            }
        }
    }
}
